package com.cc.model.dto

import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.Size
import java.io.Serializable
import java.time.LocalDateTime

/**
 * DTO for {@link com.cc.model.User}
 */
data class UserDto(
    @field:Size(max = 70) val id: String? = null,
    @field:Size(max = 50) val nickname: String? = null,
    @field:Size(max = 30) @field:NotBlank(message = "邮箱必填") val email: String,
    @field:Size(max = 50) @field:NotBlank(message = "手机号码必填") val phone: String,
    @field:Size(max = 50) val account: String? = null,
    val password: String? = null,
    val addTime: LocalDateTime? = null,
    @field:Size(max = 11) val addUser: String? = null,
    val editTime: LocalDateTime? = null,
    @field:Size(max = 11) val editUser: String? = null,
    val delFlag: Int? = null
) : Serializable